<template>
  <header>
    <nav class="nav">
      <router-link to="/">Home</router-link>
      <router-link to="/about">About</router-link>
      <router-link to="/share">Contact</router-link>
    </nav>
  </header>
  <main>
    <RouterView />
  </main>
</template>

<script setup>
import { RouterView } from 'vue-router';
</script>

<style scoped>
header {
  background-color: #333;
  color: white;
  padding: 1rem;
}

.nav {
  display: flex;
  gap: 2rem;
  justify-content: center;
  text-align: center;
}
</style>